package com.kangyi.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author Blank
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户预约养老院传回数据")
public class AddNursingHomeBooking implements Serializable {

    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("养老院id")
    private Integer nursingHomeId;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("人数")
    private Integer number;
    @ApiModelProperty("备注信息")
    private String notes;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("预约时间-用户什么时候去 格式：yyyy-MM-dd")
    private LocalDate bookingTime;
}
